#!/bin/bash
cat /etc/passwd|awk -F ":" '{print $1,$3}'>/tmp/xujun.txt
> /tmp/xujun1.txt
exec < /tmp/xujun.txt
while read line;do
     id_num=`echo $line|awk '{print $2}'`
     user=`echo  $line|awk '{print $1}'`
     if [ "$id_num" -ge 1000 ];then
          echo $user
          echo $user >>/tmp/xujun1.txt
     fi
done
num=`cat /tmp/xujun1.txt |wc -l`
echo "当前普通用户一共有：$num"